package com.weixin.paleituo.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.weixin.paleituo.factory.BrokerageFragmentFactory;

/**
 * Author yichao
 * Time  2017/11/30 9:34
 * Dest  全民经纪人
 */

public class BrokeragePagerAdapter extends FragmentPagerAdapter {
    public BrokeragePagerAdapter(FragmentManager fm) {
        super(fm);
    }



    @Override
    public Fragment getItem(int position) {


        return BrokerageFragmentFactory.getFragment(position);
    }

    @Override
    public int getCount() {
        return 3;
    }
}
